import request from '@/utils/request'



// 列表
export function querylist(query) {
    return request({
        url: '/role/page',
        method: 'get',
        params: query
    })
}

export function saveOrUpdate(data) {
    return request({
        url: '/role/saveOrUpdate',
        method: 'post',
        data
    })
}


/**
 * 
 * @param {根据主键查询用户} id 
 * @returns 
 */
export function getById(id) {
    return request({
        url: '/role/get/' + id,
        method: 'get'
    })
}

/**
 * 
 * @param {根据主键查询用户} id 
 * @returns 
 */
export function removeById(id) {
    return request({
        url: '/role/' + id,
        method: 'delete'
    })
}